#define _CRT_SECURE_NO_WARNINGS	

#include<stdio.h>

int main()
{
    double x, fraction;
    int integer;
    scanf("%lf", &x);
    fraction = x - (int)x;
    integer = (int)x;
    printf("%.2f", fraction * integer);
    return 0;
}